<!DOCTYPE html>
<html lang="en">
<head>
    {% load staticfiles %}
    <meta charset="UTF-8">
    <title>好玩的模块</title>
    <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.css">
    <script src="/static/bootstrap/js/jquery-2.1.4.min.js"></script>
    <script src="/static/bootstrap/js/bootstrap.js"></script>
</head>
<body>
    <div id="menu">
        {% for menu in interesting_menus %}
            <a class="btn btn-primary btn-lg btn-bloc" href="javascript:void(0);" label='/interesting/{{ menu.interesting_menu_url }}.html' role="button"><h3>{{ menu.interesting_menu_name }}</h3></a>
        {% endfor %}
    </div>
    <div id="display">
        <iframe id="display_iframe" src="" frameborder="0"></iframe>
    </div>
</body>
<style>
    #menu{
        position: fixed;
        top: 5%;
        left: 5%;
        width: 20%;
        height: 75%;
        background-color: #5bc0de;
    }
    #menu a{
        width: 100%;
    }
    #display{
        width: 60%;
        height: 95%;
        background-color: #ffffff;
        position: fixed;
        right: 3%;
        top: 3%;
    }
    #display_iframe{
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.23);
        overflow: hidden;
    }
</style>
<script>
    $(function () {
        $('#menu a').click(function () {
            $('#display_iframe').attr('src',$(this).attr('label'))
        })
    })
</script>
</html>